package TestLayer;

import static org.junit.Assert.fail;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import DBLayer.DbConnection;

public class DbConnectionTest
{
	private DbConnection dbConObj;
	@Before
	public void setUp() throws Exception
	{
		dbConObj = DbConnection.getInstance();
	}

	@After
	public void tearDown() throws Exception
	{
		
	}

	@Test
	public void testCloseConnection()
	{
		fail("Not yet implemented");
	}

	@Test
	public void testGetDBcon()
	{
		if(dbConObj != null)
		{
			System.out.println("OK");
		}
		else
		{
			fail("Ingen forbindelse");
		}
	}

	@Test
	public void testGetInstance()
	{
		fail("Not yet implemented");
	}

	@Test
	public void testStartTransaction()
	{
		fail("Not yet implemented");
	}

	@Test
	public void testCommitTransaction()
	{
		fail("Not yet implemented");
	}

	@Test
	public void testRollbackTransaction()
	{
		fail("Not yet implemented");
	}
}
